Skip to content

fix(activity): map musdConversion as send not convert - #10217

Open
n3ps wants to merge 1 commit into
mainfrom
n3ps/fix-musd-conversion-not-convert
Open

n3ps wants to merge 1 commit into
mainfrom
n3ps/fix-musd-conversion-not-convert

Conversation

@n3ps

@n3ps n3ps commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Map TransactionType.musdConversion through the existing ERC-20 transfer (send) path in local-transaction-mapper
  • Remove the dedicated convert case that parsed calldata and invented sourceToken/destinationToken pairs
  • Update mapper tests accordingly

Companion to MetaMask/metamask-extension#46254, which removes convert UI treatment and excludes musdConversion from local activity until the indexed API is authoritative.

Test plan

  • yarn test:verbose --testPathPatterns=local-transaction-mapper.test.ts --coverage=false in packages/client-utils (80 passed)

Made with Cursor


Note

Medium Risk
Changes the activity item type and data shape for mUSD conversion transactions, which can affect any client still expecting convert until coordinated with the companion extension change.

Reviewed by Cursor Bugbot for commit c5b499f. Bugbot is set up for automated code reviews on this repo. Configure here.

n3ps added a commit that referenced this pull request Sep 12, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
Stop inventing convert activity rows with source/destination token pairs
for mUSD conversion orchestration txs. Classify them as ordinary ERC-20
sends and defer accurate activity data to the indexed API.

Co-authored-by: Francis Nepomuceno <n3ps@users.noreply.github.com>
@cursor
cursor Bot force-pushed the n3ps/fix-musd-conversion-not-convert branch from 4ee9a69 to c5b499f Compare November 5, 2026 01:19
@n3ps
n3ps marked this pull request as ready for review November 5, 2026 01:47
@n3ps
n3ps requested review from a team as code owners November 5, 2026 01:47
@n3ps
n3ps deployed to default-branch November 5, 2026 01:47 — with GitHub Actions Active
@n3ps
n3ps enabled auto-merge November 5, 2026 01:49

This branch was successfully deployed

1 active deployment
default-branch — c5b499f7 Deployed Nov 5, 2026 by n3ps via Determine whether this PR is a release PR #6537
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant